<!DOCTYPE html>
<html lang="zh">
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<meta http-equiv="X-UA-Compatible" content="ie=edge">
		<!-- <link rel="stylesheet" type="text/css" href="./animate.min.css"/> -->
		<link href="https://cdn.jsdelivr.net/npm/animate.css@3.5.1" rel="stylesheet" type="text/css">
		<script src="./lib/vue.js" type="text/javascript" charset="utf-8"></script>
		<title></title>
		<style type="text/css">
			*{
				padding: 0;
				margin: 0;
			}
			.content{
				width: 200px;
				height: 200px;
				background-color: #00BFFF;
			}
			
		</style>
	</head>
	<body>
		<div id="app">
			<!-- 我们可以通过以下 attribute 来自定义过渡类名：
			enter-class
			enter-active-class
			enter-to-class (2.1.8+)
			leave-class
			leave-active-class
			leave-to-class (2.1.8+) -->
			<transition enter-active-class="animated tada" leave-active-class="animated bounceOutRight">
				<div v-if="isShow" class="content"></div>
			</transition>
			<button @click="toggleEvent" type="button">切换内容</button>
		</div>
	</body>
	<script type="text/javascript">
		var app = new Vue({
			el:"#app",
			data:{
				isShow:true,
			},
			methods:{
				toggleEvent:function(){
					this.isShow = !this.isShow
				}
			}
		})
	</script>
</html>